package com.example.eurekaserver2.feign;

import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("GATEWAY")
@RequestMapping("/demo")
public interface FeignService {

    /**
     * 远程调用
     * @return
     */
    @RequestMapping("/feign")
    String getFeign();
}
